package com.mars.foodserver.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author wq
 * @version 1.0
 * @date 2020/12/16 9:44
 */
@Data
public class SysMenuReq implements Serializable {

    /**
     * 菜单ID
     */
    private Integer id;

    /**
     * 名称
     */
    @NotNull(message = "名称不能为空")
    @Length(min = 2, max = 20, message = "名称 2~20个字符")
    private String title;
    /**
     * 路由
     */
    @NotNull(message = "路由不能为空")
    @Length(min = 2, max = 50, message = "路由 50个字符")
    private String path;
    /**
     * 权限code
     */
    private String permissionCode;
    /**
     * 图标
     */
    private String icon;
    /**
     * 父级ID
     */
    private Integer parentId;

    /**
     * 排序
     */
    private Integer sort;
}
